package showhow.simple.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import showhow.simple.model.entity.CustomerDO;
import org.apache.ibatis.annotations.Param;

public interface CustomerMapper extends BaseMapper<CustomerDO> {
    default CustomerDO getByNameAndPaswd(@Param("name") String name, @Param("paswd") String paswd) {
        return selectOne(new QueryWrapper<CustomerDO>().eq("name", name).eq("paswd", paswd));
    }
}
